package com.zx.mes.hyl.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.zx.mes.controller.BaseController;
import com.zx.mes.hyl.entity.Admin;
import com.zx.mes.hyl.service.AdminService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 华云龙
 * @since 2018-09-13
 */
@Api(tags="用户管理")
@RestController
@RequestMapping("/admin")
@Slf4j
public class AdminController extends BaseController<AdminService, Admin> {

    @ApiOperation("打招呼")
    @GetMapping("/hello")
    public String hello(@ApiParam("打招呼的内容") @RequestParam String str){
        log.info("过来执行了!");
        return "api test:"+str;
    }
}

